<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Spec Export - Sketch MeaXure</title>


  <%if(htmlWebpackPlugin.options.devMode){%>
    <script src="./jquery.js"></script>
    <script src="./static/mock.js"></script>
    <%}else{%>
      <script src="./src/jquery.js"></script>
      <script>
        let data = '{{data}}'
      </script>
      <%}%>
</head>

<body id="app">
  <img id='testImg' src="https://gitee.com/static/images/logo-black.svg" style="display:none;"
    onerror="getImgError()" />
</body>

<script>
  function init() {
    try {
      if (meaxure && meaxure.render) {
        meaxure.render(data)
      } else {
        setTimeout(init, 200)
      }
    } catch (e) {
      console.log(e)
      setTimeout(init, 200)
    }
  }

  init()
</script>

</html>